package com.gears_software.sxdc.dccx.ui.activity;

import android.app.Activity;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.TextView;

import com.gears_software.sxdc.dccx.R;
import com.gears_software.sxdc.dccx.application.DCCXApplication;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.App;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import qiu.niorgai.StatusBarCompat;

/**
 * Created by SunMuran on 2017/8/5.
 */
@EActivity(R.layout.activity_jiashizheng_authentication)
public class JiaShiZhengAuthenticationActivity extends Activity{
    @App
    DCCXApplication app;
    @ViewById
    TextView actionbar_title;
    @ViewById
    TextView back_icon;
    @ViewById
    TextView right_icon;
    @ViewById
    TextView txt_shalou;

    @AfterViews
    void created() {
        initIconFont();
        StatusBarCompat.setStatusBarColor(this, ContextCompat.getColor(this, R.color.colorActionbar));

    }

    void initIconFont() {
        actionbar_title.setText("车主认证");
        back_icon.setVisibility(View.VISIBLE);
        back_icon.setText(R.string.back_icon);
        back_icon.setTypeface(app.iconfont);
        right_icon.setVisibility(View.GONE);
        txt_shalou.setTypeface(app.iconfont);
    }

    @Click
    void back_icon() {
        this.finish();
    }
}
